package com.cskaoyan.controller.admin.marketmanagement;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.admin.region.RegionListVo;
import com.cskaoyan.service.admin.region.RegionService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: bwj
 * @Date: 2022/09/06/21:35
 * @Description:
 */
@RestController
@RequestMapping("admin/region")
public class RegionController {

    @Autowired
    RegionService regionService;
    /**
    * @Author: 宾文杰 @Description: 获取全国行政区信息 @Date: 2022/9/6
    */
    @RequestMapping("list")
    public BaseRespVo<RegionListVo> list(){
        return BaseRespVo.ok(regionService.list());
    }
}
